Github Actionsでbotによるアイコン付きのCommitをする方法
public.icon
趣味プロジェクトのため、2.のgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>を採用した
1. github-actions <github-actions@github.com>
2. github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
どこにも推奨はされていないものの、アイコンもリンクも動作する
下記の通り、github-actions[bot]@users.noreply.github.comでも動作するようだ
code:bash
git config --local user.email "github-actionsbot@users.noreply.github.com" git config --local user.name "github-actionsbot" 参考
I think this would be a nice feature. It would also lead to a more consistent appearance of commits created by GitHub Actions. I'm currently wondering which email address and username I should use for the time being.
The README.md suggests github-actions <github-actions@github.com>. However, this email is not recognized by the platform. GitHub displays the author of the commit with the generic icon and without a link.
https://user-images.githubusercontent.com/1288216/98618468-9b289680-2301-11eb-900a-71f37c9f0c44.png
A thread in the GitHub Support Community suggests github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>. This seems to work nicely. The author of the commit has the same icon and name as GitHub Actions everywhere else. The link goes to https://github.com/features/actions as I would expect. I'm just wondering if there is any caveat since it is not promoted in the README.md. https://user-images.githubusercontent.com/1288216/98619468-96fd7880-2303-11eb-8bca-d347948c15f4.png
Most repositories I found seem to use GitHub Action <action@github.com>. I don't know where this is comming from. GitHub seems to link it to some user but clicking on the user opens a 404-page. The icon and name doesn't match what is usually shown for GitHub Actions.
https://user-images.githubusercontent.com/1288216/98620024-bb0d8980-2304-11eb-8aa6-c1b85091b470.png
If there is no caveat for the second option, I would suggest that the checkout action configures Git accordingly if none of both options is already set. (Alternatively, GitHub's runners could be updated to use this configuration.)
https://pbs.twimg.com/media/ESjCtdAUMAAYoEp.jpg